package com.service.strategy;

/**
 * VIP折扣
 *
 * @author wangyongkun
 * @create 2021/3/24
 */
public class VIPDiscount implements Discount {
    private final double DISCOUNT = 0.5;

    @Override
    public double calculate(double price) {
        System.out.println("VIP 票: ");
        System.out.println("增加积分: ");
        return price * DISCOUNT;
    }
}
